import request from "@/utils/Request";
export default {
	login(data) {
		return request({
			url: "/sys/user/login",
			method: "post",
			data: data,
		});
	},
	list(data) {
		return request({
			url: "/sys/user/list",
			method: "post",
			data: data,
		});
	},
	save(data) {
		return request({
			url: "/sys/user/save",
			method: "post",
			data: data,
		});
	},
	delete(ids) {
		return request({
			url: "/sys/user/delete",
			method: "delete",
			params: { ids: ids },
		});
	},

	getSameDepartment(id) {
		return request({
			url: "/sys/user/get",
			method: "post",
			data: { departmentId: id },
		});
	},

	changePassword(data) {
		return request({
			url: "/sys/user/changePassword",
			method: "post",
			data: data,
		});
	},
};
